package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	requestURL := "https//codeup.aliyun.com"
	res, err := http.Get(requestURL)
	if err != nil {
		panic(err)
	}

	contents, err := io.ReadAll(res.Body)
	if err != nil {
		panic(err)
	}

	// res.Body must be closed

	fmt.Println(string(contents))
}